package cn.qingyun.gis.modules.scenes.mapper;

import cn.qingyun.gis.modules.scenes.entity.AddrPoiGovernment;
import cn.qingyun.gis.modules.scenes.entity.PoiGovernment;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author guest
 * @since 2024-05-18
 */
@DS("merge_government_db")
public interface AddrPoiGovernmentMapper extends BaseMapper<AddrPoiGovernment> {
    /**
     * 查询level=7的poi数据
     * @param poiId
     * @return
     */
    AddrPoiGovernment selectAddrPoiGovernment(@Param("code") String poiId);
    /**
     * 查询路巷街、门牌号
     * @param codes
     * @return
     */
    List<AddrPoiGovernment> selectRoadList(@Param("list")List<String> codes);
}
